﻿using UnityEngine;
using System.Collections;

public class GM : MonoBehaviour {
    public static GM instance;
    public bool isPlaying = false;
    private void Awake()
    {
        instance = this;  //快速查找

    }
    // Use this for initialization
    void Start () {
        Brick[] allBricks = GameObject.FindObjectsOfType<Brick>();
        foreach(var item in allBricks)
        {
            item.GetComponent<MeshRenderer>().material.color = Random.ColorHSV();
        }
        
	}
	
	// Update is called once per frame
	void Update () {
	
	}
}
